/*
 * Copyright 2007 Jeffrey Palm.
 */

public class OS {

  public static boolean isMac() {
    return check("mac");
  }
  
  public static boolean isWindows() {
    return check("windows");
  }
  
  public static boolean isOther() {
    return !isWindows() && !isMac();
  }
  
  private static boolean check(String s) {
    String os = System.getProperty("os.name",null);
    if (os == null) return false;
    String lc = os.toLowerCase();
    return lc.indexOf(s) != -1;
  }
  
}
